/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.thxy.jxgl.filter;

import java.io.UnsupportedEncodingException;

/**
 *
 * @author Lenovo
 */
public class ToCh {
    public static String toChinese(String str)
	{
		if(str==null) str="";
		try{
			str=new String(str.getBytes("ISO-8859-1"),"GBK");
		}catch(UnsupportedEncodingException e)
		{
			str="";
			e.printStackTrace();
		}
		return str;
	}
    
}
